package domain;

import service.Status;

public class Programmer extends Employee {
    private int memberid;//团队中的id
    private Status status=Status.FREE;
    private  Equipment equipment;

    public Programmer() {
        super();
    }

    public Programmer(int id, String name, int age, double sarlay,Equipment equipment) {
        super(id, name, age, sarlay);
        this.status=status;
        this.equipment = equipment;
    }

    public Programmer(int id, String name, int age, double sarlay) {
    }

    public int getMemberid() {
        return memberid;
    }

    public void setMemberid(int memberid) {
        this.memberid = memberid;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }

    @Override
    public String toString() {
        return getDetails()+"\t程序员\t"+status+"\t\t\t"+equipment;
    }
}
